package 异常处理;

import java.util.InputMismatchException;

public class liang {
    //try catch finally
    //throw \throws
    public static void main(String[] args) {
        try
        {
            int num1=15;
            int num2=0;
            System.out.println("两个商"+num1/num2);

        }catch(InputMismatchException ex)
        {
            System.out.println("这里异常我自己处理");
        }
        finally{
            System.out.println("两个数的商是");
        }
    }
}
